Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Consistent return type from lstirling_asym(x::Float32) #141

Merged
merged 4 commits into from
Apr 3, 2022

Conversation

dmbates
Copy link
Contributor

@dmbates dmbates commented Apr 2, 2022

As described in #140. I also changed the construction to use the previously calculated Float64 values.

Closes #140

@codecov-commenter
Copy link

codecov-commenter commented Apr 2, 2022

Codecov Report

Merging #141 (a82437f) into master (7185ee5) will increase coverage by 1.13%.
The diff coverage is n/a.

@@            Coverage Diff             @@
##           master     #141      +/-   ##
==========================================
+ Coverage   55.47%   56.60%   +1.13%     
==========================================
  Files          13       13              
  Lines         530      530              
==========================================
+ Hits          294      300       +6     
+ Misses        236      230       -6     
Impacted Files Coverage Δ
src/misc.jl 76.47% <ø> (+35.29%) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 7185ee5...a82437f. Read the comment docs.

src/misc.jl Outdated Show resolved Hide resolved
Co-authored-by: David Widmann <devmotion@users.noreply.github.com>
@dmbates
Copy link
Contributor Author

dmbates commented Apr 2, 2022

Thanks for the suggestion @devmotion

Copy link
Member

@devmotion devmotion left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM. Can you add a test of the type (in)stability? Eg @inferred StatsFuns.lstirling_asym(x) where x isa Float32.

@dmbates
Copy link
Contributor Author

dmbates commented Apr 2, 2022

I hope this is good to go now.

@andreasnoack andreasnoack merged commit 958d48a into master Apr 3, 2022
@andreasnoack andreasnoack deleted the dmbates-patch-1 branch April 3, 2022 10:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

return type of lstirling_asym(x::Float32) is inconsistent.
4 participants